package io.renren.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章表
 * 
 * @author chenjiacheng
 * @email 
 * @date 2019-02-11 19:04:20
 */
@TableName("tb_article")
public class Article implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 文章id
	 */
	@TableId
	private Integer articleId;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 描述
	 */
	private String desc;
	/**
	 * 置顶
	 */
	private Integer top;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 作者id
	 */
	private Integer authorId;
	/**
	 * 查看量
	 */
	private String view;
	/**
	 * 图片
	 */
	private String pic;
	/**
	 * 有视频
	 */
	private String isVideo;
	/**
	 * 删除
	 */
	private Integer isDeleted;

	@TableField( exist =  false)
	private ArticleData articleData;

	/**
	 * 设置：文章id
	 */
	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}
	/**
	 * 获取：文章id
	 */
	public Integer getArticleId() {
		return articleId;
	}
	/**
	 * 设置：标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：标题
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * 设置：描述
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}
	/**
	 * 获取：描述
	 */
	public String getDesc() {
		return desc;
	}
	/**
	 * 设置：置顶
	 */
	public void setTop(Integer top) {
		this.top = top;
	}
	/**
	 * 获取：置顶
	 */
	public Integer getTop() {
		return top;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：作者id
	 */
	public void setAuthorId(Integer authorId) {
		this.authorId = authorId;
	}
	/**
	 * 获取：作者id
	 */
	public Integer getAuthorId() {
		return authorId;
	}
	/**
	 * 设置：查看量
	 */
	public void setView(String view) {
		this.view = view;
	}
	/**
	 * 获取：查看量
	 */
	public String getView() {
		return view;
	}
	/**
	 * 设置：图片
	 */
	public void setPic(String pic) {
		this.pic = pic;
	}
	/**
	 * 获取：图片
	 */
	public String getPic() {
		return pic;
	}
	/**
	 * 设置：有视频
	 */
	public void setIsVideo(String isVideo) {
		this.isVideo = isVideo;
	}
	/**
	 * 获取：有视频
	 */
	public String getIsVideo() {
		return isVideo;
	}
	/**
	 * 设置：删除
	 */
	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}
	/**
	 * 获取：删除
	 */
	public Integer getIsDeleted() {
		return isDeleted;
	}

	public ArticleData getArticleData() {
		return articleData;
	}

	public void setArticleData(ArticleData articleData) {
		this.articleData = articleData;
	}
}
